#!/usr/bin/env bash

# 关闭防火墙和selinux
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
sed -ri "s@^(SELINUX=).*\$@\1disabled@g" /etc/selinux/config

# 安装python3解释器
python3 -V
if [ $? -ne 0 ];then
yum install -y python3-devel python3 
fi

basepath=$(cd `dirname $0`; pwd)
cd $basepath
# 安装依赖
pip3 install -r requirements.txt
